package com.xyj.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:16/8/7
 */
@RestController
public class TestController {

    @RequestMapping(value = "test")
    public String hello() throws Exception {
        boolean flag=true;
        if (flag)throw  new Exception("测试错误");
        return "hello world";
    }
}
